package com.flyco.modules.task.xml;

import com.thoughtworks.xstream.annotations.XStreamAlias;
import com.thoughtworks.xstream.annotations.XStreamImplicit;
import lombok.Data;

import java.util.ArrayList;
import java.util.List;

@XStreamAlias("TPreQuota")
@Data
public class SapDistributorDiscountRespXML {

    @XStreamImplicit(itemFieldName = "item")
    private List<SapDistributorDiscountItem> itemList = new ArrayList<>();

    @XStreamAlias("item")
    @Data
    public class SapDistributorDiscountItem {
        /**
         * 经销商编码
         */
        @XStreamAlias("Kunnr")
        private String Kunnr;

        /**
         * 渠道
         */
        @XStreamAlias("Vtweg")
        private String Vtweg;

        /**
         * 销售组织
         */
        @XStreamAlias("Vkbur")
        private String Vkbur;

        /**
         * 折扣类型
         */
        @XStreamAlias("Kschl")
        private String Kschl;

        /**
         * 总折扣余额
         */
        @XStreamAlias("ZZkjh")
        private String ZZkjh;


        /**
         * 可用折扣余额
         */
        @XStreamAlias("ZRest")
        private String ZRest;
    }
}


